package com.nyc;

import com.nyc.boot.config.Demo03JavaConfig;
import com.nyc.boot.service.StudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author niuyicong
 * @date 2025/8/25  23:26:42
 * @description
 */
public class Demo03StartApp {
    public static void main(String[] args) {
        ApplicationContext ac = new AnnotationConfigApplicationContext(Demo03JavaConfig.class);
        StudentService bean = ac.getBean(StudentService.class);
        System.out.println("ac.getBean(StudentService.class):=====" + bean);
    }
}
